package org.testfire.support.io.properties.translators;

import org.testfire.support.io.properties.PropertyTranslator;

import java.io.File;
import java.lang.reflect.Constructor;

/**
 * Created by IntelliJ IDEA.
 * User: granum
 * Date: Sep 14, 2007
 * Time: 1:27:27 PM
 */
public class FileTranslator<F> extends PropertyTranslator<File>
{
	public static final PropertyTranslator instance = new FileTranslator();

	public String toPropertyString(File o){
		return String.valueOf(o);
	}

	public File toObject(Class<File> clazz, String string) throws Exception
	{
		return new File(string);
	}
}